package cn.com.surker.control.dao;

import cn.com.surker.control.entity.ControlExpendBatch;
import cn.com.surker.control.entity.vo.ControlExpendBatchVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 工控机原始消耗盘表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2025-01-06
 */
public interface ControlExpendBatchDao extends BaseMapper<ControlExpendBatch> {

	/**
	 * 查询普通列表
	 *
	 * @param dbCode       数据库
	 * @param controlInvId 发货单id
	 * @return
	 */
	List<ControlExpendBatch> findList(String dbCode, Long controlInvId);

	/**
	 * 查询带有消耗的数据
	 *
	 * @param dbCode
	 * @param controlInvId
	 * @return
	 */
	List<ControlExpendBatchVo> findDetailList(String dbCode, Long controlInvId);
}
